<?php

namespace Modules\Order\Models;

use Illuminate\Database\Eloquent\Model;
use Modules\Auth\Models\User;
use Modules\Good\Models\Good;
use Modules\Order\Models\Order;
class OrderDetail extends Model
{

    public function order(){
        return $this->belongsTo(Order::class,'order_id','id');
    }
    public function goods(){
        return $this->belongsTo(Good::class,'good_id','id');
        // return $this->hasOne(Good::class,'id','good_id');
    }
}

